

import { ref } from "vue"
//表单配置
export const formConfig = ref({
  labelPosition: "", //label的位置，默认right,可选left,top
  labelWidth: "200px", //表单上label宽度,不设置默认自动
  inline: false, //是否每个表单项换行显示，默认false
  rowGutter: 10, // 每个表单项之间的距离，不设置默认为20 number
  formSize:"large", //表单尺寸，可选small,default,large 默认default
  disabled: false, //是否禁用表单，默认false
  formType: "submit", //表单类型，可选search submit
  buttonGroup:[
    {
      type: "primary",
      text: "提交",
      icon: "el-icon-search",
      formType: "submit",
      size:"default",
      submitApi:functionName()

    },
    {
      type: "",
      text: "取消",
      icon: "el-icon-search",
      formType: "cancel",
    }
  ],
  formItems: [
    {
      type: "input",
      label: "输入框",
      prop: "name",
      placeholder: "请输入姓名",
      rules: [{ required: true, message: "请输入姓名", trigger: "blur" }],
      maxlength:10,
      labelWidth: "", //label宽度 默认根据上的labelWidth决定，string
    },
    {
     type: "input",
     label: "输入框2输入框2输入框2",
    }
  ]
})

